<template>
  <view class="container">
    <view class="box">
      <rich-text :nodes="content"></rich-text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      content: ''
    };
  },
  methods: {
    // 获取隐私协议
    async getysxy() {
      const res = await uni.$http.post('/index/agreement', {
        type: 'privacy'
      });
      console.log('隐私协议', res);
      this.content = res.data.data;
    }
  },
  onLoad() {
    this.getysxy();
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  .box {
    box-sizing: border-box;
    margin: 20rpx 30rpx;
    font-size: 26rpx;
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    color: #333333;
  }
}
</style>
